import type { BasePageReqParam, EnabledStatus } from './common'

export enum ChannelSettType {
  PRE_PAY = 'prepay',
  EMPTY = '',
}

export interface ChannelRes {
  id: string
  companyName: string
  contactPerson: string
  phone: string
  enabled: EnabledStatus
  settType: ChannelSettType
  createDate: string
  updateDate: string
  deleted: string
}
export interface ChannelPageReqParams extends BasePageReqParam {
  companyName?: string
  enabled?: EnabledStatus | ''
}

export interface ChannelReqData {
  companyName: string
  contactPerson: string
  phone: string
  settType: ChannelSettType
  enabled: EnabledStatus
}

export enum GuideQuotaType {
  COMPANY = 'company',
  PERSON = 'person',
}

export enum GuideGender {
  MALE = 'male',
  FEMALE = 'female',
}

export interface GuideRes {
  id: string
  guideName: string
  companyId: string
  companyName: string
  gender: GuideGender
  phone: string
  genderNumber?: string
  genderImageFront?: string
  genderImageBack?: string
  quotaType: GuideQuotaType
  quotaAll: string
  quotaBalance: string
  enabled: EnabledStatus
  createDate: string
  updateDate: string
  deleted: string
}

export interface GuideReqData {
  guideName: string
  companyId: string
  gender: GuideGender
  phone: string
  genderNumber?: string
  genderImageFront?: string
  genderImageBack?: string
  quotaType: string
  quotaAll: number
  enabled: EnabledStatus
}

export interface GuidePageReqParams extends BasePageReqParam {
  companyId?: string
  guideName?: string
  companyName?: string
  phone?: string
  enabled?: EnabledStatus | ''
}
